package top.yuzt.noticeserver.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import top.yuzt.noticeserver.entity.Usergroups;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yuzt
 * @since 2024-05-03
 */
@Mapper
public interface UsergroupsMapper extends BaseMapper<Usergroups> {
    @Select("SELECT * FROM Usergroups WHERE GroupID = #{groupID}")
    List<Usergroups> findUserGroupsByGroupID(Integer groupID);

    @Select("SELECT * FROM Usergroups WHERE GroupID = #{groupID}")
    Usergroups findGroupsByGroupID(Integer groupID);

}
